Skip to content

Conversation

wind57
Copy link
Contributor

@wind57 wind57 commented Aug 29, 2025

No description provided.

wind57 and others added 30 commits December 4, 2021 07:59
@wind57 wind57 force-pushed the drop_some_deprecations branch from 16611ed to 86ee5de Compare August 29, 2025 14:38
shell: bash
run: |
./mvnw clean install -Dspring-boot.build-image.skip=true -DskipITs -DskipTests -T1C -U -B -q
./mvnw clean install -P 'run-on-github-actions' -Dspring-boot.build-image.skip=true -DskipITs -DskipTests -T1C -U -B -q
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we only need this for github, so add the profile

*/
@Deprecated(forRemoval = true)
@Bean
@ConditionalOnMissingBean
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we were getting something from the environment via :

environment.getProperty("spring.cloud.kubernetes.client.user-agent"

and now we do it from KubernetesClientProperties. It should have been like this from the beginning, but because of other factors and being public, we never did this clean-up.

return new KubernetesClientProperties(null, null, null, "default", null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
null);
null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one less argument here, rollingTimeout was deprecated in fabric8 and not used anymore


private final ServicePortSecureResolver servicePortSecureResolver;

// visible only for testing and
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment is first resolved, related to CoreV1Api

CoreV1Api coreV1Api;

@Deprecated(forRemoval = true)
public KubernetesInformerDiscoveryClient(String namespace, SharedInformerFactory sharedInformerFactory,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this constructor is removed, and we are left with a single one.

Let me try to simplify this. We had two constructors:

public KubernetesInformerDiscoveryClient(List<SharedInformerFactory> factories) {

}

and

public KubernetesInformerDiscoveryClient(SharedInformerFactory factory) {

}

again, this simplifies it so that its easier to understand the change.

Now, we only have a single constructor, that accepts a List. As such, all the callers we had, have to change now.

String caCertFile, String caCertData, String clientCertFile, String clientCertData, String clientKeyFile,
String clientKeyData, String clientKeyAlgo, String clientKeyPassphrase, String username, String password,
Duration watchReconnectInterval, Duration watchReconnectLimit, Duration connectionTimeout,
Duration requestTimeout, @Deprecated(forRemoval = true) Duration rollingTimeout, Duration loggingInterval,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one @Deprecated(forRemoval = true) Duration rollingTimeout is dropped

@wind57 wind57 force-pushed the drop_some_deprecations branch from 5dd7054 to 31b10cc Compare August 30, 2025 04:03
@wind57
Copy link
Contributor Author

wind57 commented Aug 30, 2025

@ryanjbaxter this one is ready also and is a little more involved. But its only "involved" because of the number of files, because all it does is drop the deprecated code and adjust according to that.

I left some comments where I thought that the changes are most relevant. Thank you

@wind57 wind57 marked this pull request as ready for review August 30, 2025 04:32
@wind57 wind57 closed this Sep 25, 2025
@ryanjbaxter
Copy link
Contributor

@wind57 why are you closing these and other PRs?

@wind57
Copy link
Contributor Author

wind57 commented Sep 25, 2025

sorry, I will revert them all. there was a problem on my side and I had to delete my fork and create a new one. this will close automatically all my PRs, but I will revert them one by one

@ryanjbaxter
Copy link
Contributor

OK no problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants